// pages/index/index.js
Page({
  data: {
    winHeight: 0
  },
  //监听传值，后面自己做处理了
  cityTap(e) {
    console.log(e);
    const cityName = e.detail.cityname;
    wx.reLaunch({
      url: '../index/index?city='+cityName,
    })
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    const win = wx.getSystemInfoSync();
    console.log(win);
    this.setData({
      winHeight: win.windowHeight
    });
    
  }
})